package com.nidu.demo.mail.dto;

import com.nidu.demo.base.BaseCO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 邮件账号客户端对象
 *
 * @author auto
 */
@Data
@Schema(description = "邮件账号客户端对象")
@EqualsAndHashCode(callSuper = true)
public class MailAccountCO extends BaseCO {

    @Schema(description = "主键ID", example = "1")
    private Long id;

    @Schema(description = "邮箱", example = "admin@example.com")
    private String mail;

    @Schema(description = "用户名", example = "admin")
    private String username;

    @Schema(description = "SMTP 服务器域名", example = "smtp.example.com")
    private String host;

    @Schema(description = "SMTP 服务器端口", example = "587")
    private Integer port;

    @Schema(description = "是否开启 SSL", example = "true")
    private Boolean sslEnable;

    @Schema(description = "是否开启 STARTTLS", example = "true")
    private Boolean starttlsEnable;

}
